<%@ page language="java" contentType="text/html; charset=ISO-8859-15" pageEncoding="ISO-8859-15"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">

	<style type="text/css" media="all">
      @import url("css/maven-base.css");  @import url("css/screen.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />

<title></title>
</head>
<body>

<h1>
	<bean:message key="title.canvi.solicitant" />
</h1>


<h4>
	<bean:message key="label.solicitant.actual" /> <%=request.getSession().getAttribute("personaSolicitant") %>
</h4>

<html:form styleId="form1" action="/GestionSolicitud.do?action=goTocambiaUser">

	<fieldset>
		
		<div style="text-align:center;padding-top:10px;">
			<b><bean:message key="label.user.perfil" /></b>
					
			<html:select property="idRolSelect" style="margin-left:15px;">
				<html:option value="0"><bean:message key="label.option.tots" /></html:option>
				<html:optionsCollection name="listaRoles" value="idRol" label="name" />
			</html:select>
			
			<b style="margin-left:25px;"><bean:message key="label.user.nick" /></b>
					
			<html:text property="filtreNick" size="55" maxlength="50" style="margin-left:15px;"/>
		</div>
		
		<div style="text-align:center;padding-top:10px;">
			<html:submit><bean:message key="label.button.cerca" /> </html:submit>
		</div>
	</fieldset>


	<html:hidden styleId="idSolicitud"  property="idSolicitud" />
	
	
	
			<display:table id="data" name="requestScope.gestionSolicitudForm.users" requestURI="/GestionSolicitud.do?action=goTocambiaUser" pagesize="10" partialList="false" sort="list" defaultorder="ascending" defaultsort="1">
				<display:column title="Nom"  property="name" sortable="true"  />
				<display:column title="Nick" property="nick" sortable="true"/>
				<display:column title="Rol" property="rol.name" sortable="true"/>
				<display:column title="" href="GestionSolicitud.do?action=canviUserSave" paramId="id" paramProperty="id" value="Selecciona"/>
			</display:table>
	
	<div style="text-align:center;padding-top:10px;">
		
		<% if(request.getSession().getAttribute("param").equals("llibre")){ %>
		 	<a href="GestionSolicitud.do?action=gestioLlibre&idSolicitud=<%=request.getSession().getAttribute("idSolicitud")%>&goTo=<%=request.getSession().getAttribute("goTo")%>" ><bean:message key="label.button.torna" /></a>
		<%}else{ %>
			<a href="GestionSolicitud.do?action=gestioRevista&idSolicitud=<%=request.getSession().getAttribute("idSolicitud")%>&goTo=<%=request.getSession().getAttribute("goTo")%>" ><bean:message key="label.button.torna" /></a>
		<%} %>  
	</div>

</html:form>

</body>
</html>
